<style type="text/css">
    .layui-form-label{
        padding-left: 9px;
        padding-right: 9px;
    }
</style>
<form class="layui-form"   action="javascript:;" lay-filter="xdWidget-attr-form">
    <input type="hidden"  name="id" value="">
    <input type="hidden"  name="classFlag" value="">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">控件Label</label>
            <div class="layui-input-inline">
                <input type="text" name="label" lay-verify="" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">控件名</label>
            <div class="layui-input-inline">
                <input type="text" name="name" lay-verify="required"
                       placeholder="重要：传参使用"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">提示</label>
            <div class="layui-input-inline">
                <input type="text" name="placeholder" lay-verify="" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-inline">
                <select name="type" lay-verify="required" autocomplete="off">
                    <option value="text">text</option>
                    <option value="hidden">hidden</option>
                    <option value="password">password</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">验证</label>
            <div class="layui-input-inline">
                <select name="verify" >
                    <option value=""></option>
                    <option value="required">必填项</option>
                    <option value="phone">手机号</option>
                    <option value="email">邮箱</option>
                    <option value="url">网址</option>
                    <option value="number">数字</option>
                    <option value="date">日期</option>
                    <option value="identity">身份证</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline">
                <input type="checkbox" name="readable" title="可用" lay-skin="primary"  value="true">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">自定义Style</label>
            <div class="layui-input-inline">
                <input type="text" name="style" lay-verify="" autocomplete="off" class="layui-input">
            </div>
        </div>

    </div>

    <div class="layui-form-item layui-layout-admin">
        <div class="layui-input-block">
            <div class="layui-footer" style="left: 0;">
                <button class="layui-btn" lay-submit="" lay-filter="xdWidget-attr-form-bt">保存</button>
                <button class="layui-btn" lay-submit="" lay-filter="xdWidget-preview-form-bt">预览</button>
            </div>
        </div>
    </div>
</form>

<script type="text/javascript">
 //console.log($("input[id='测试']").val())
</script>